<template>
  <div>
    <p>这是首页, name: {{ auth.user.name }}</p>
    <CustomTabBar></CustomTabBar>
  </div>
</template>

<script setup lang="ts">
import './index.scss'

import { useAuthStore } from '@/stores';
import CustomTabBar from '@/components/custom-tabbar/index.vue'
import { useRouterPush } from '@/composables';
const auth = useAuthStore()

if (auth.isLogin() == false) {
  const { toLogin } = useRouterPush()
  toLogin()
}

</script>
